package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("护理任务DTO")
public class NursingTaskDto {


    @ApiModelProperty(value = "老人姓名")
    private String  elderName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "护理员id")
    private String nurseId;

    @ApiModelProperty(value = "状态  1待执行 2已执行 3已关闭 ")
    private String status;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "取消原因")
    private String reason;

    @ApiModelProperty(value = "期望服务时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;

    @ApiModelProperty(value = "实际服务时间")
    private String mark;

    @ApiModelProperty(value = "执行图片")
    private String taskImage;
    @ApiModelProperty(value = "执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime;
}
